﻿using System;
/*
class Program
{
    static void Main(string[] args)
    {
        // 测试抽象类
        UserTest userTest = new UserTestImpl();
        userTest.M1();
        userTest.M2();
        userTest.M3();

        // 测试接口
        UserService userService = new UserServiceImpl();
        userService.Add();
        userService.Delete();
        userService.Update();
        userService.Query();

        // 测试继承关系
        Student student = new Student { Name = "张三", Age = 18 };
        student.Study();

        Son son = new Son { FamilyName = "张" };
        son.Work();   // 继承自Father
        son.Play();   // 继承自Child
        son.Read();   // 自身方法

        Console.ReadLine();
    }
}
*/